package com.lwm.meijuzhuji;

import java.util.Arrays;

/**
 * @author liweimin
 * @date 2020/10/15 16:30
 * @description jdk5.0 之前需要自定义枚举类  jdk5.0 之后 可以使用关键字enum
 */
public class EnumAnnotateTest {
    public static void main(String[] args) {
        Season[] values = Season.values();
        Arrays.stream(values).forEach(System.out::println);
        Thread.State[] values1 = Thread.State.values();
        Arrays.stream(values1).forEach(System.out::println);
    }
}
